<template>
    <div class="body shaopShare">
        <div class="recommed p">
            <h2>为您推荐</h2>
            <div class="floor guesslike">
                <div class="likeshop">
                    <ul>
                        <!--商品推荐-->
                        <li
                            v-for="(item, index) in recommend_goods"
                            :key="index"
                            @click="
                                $router.push({
                                    path: '/shopDetail',
                                    query: { id: item.goods_id },
                                })
                            "
                        >
                            <a>
                                <div class="similer-product">
                                    <img
                                        :src="item.image_link"
                                    />
                                    <span class="similar-product-text"
                                        >{{ item.goods_name }}
                                    </span>
                                    <span class="similar-product-price">
                                        <span class="big-price"
                                            ><em>¥</em
                                            >{{ item.shop_price.split('.')[0]
                                            }}<em
                                                >.{{
                                                    item.shop_price.split(
                                                        '.'
                                                    )[1]
                                                }}</em
                                            ></span
                                        >
                                    </span>
                                </div>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
// import { axiosPost } from '../../axios';
// import { Toast } from 'vant';
export default {
    name: '',
    props: ['recommend_goods'],
    data() {
        return {};
    },
    computed: {},
    mounted() {},
    methods: {},
};
</script>

<style lang="less" scope>

</style>
